{include file="public/header" select="0" /}
<body class="bgc hide-top">
<div class="cart-container">
    <img src="/static/index/img/icon57.png" alt="">
    <div class="cart-content profile-content">
        <ul class="profile-set">
            <li onclick="load_href('{:url(\'news/index\')}',2)">
                <img src="/static/index/img/icon58.png" alt="">
                <span></span>
            </li>
            <li onclick="load_href('{:url(\'user/setting\')}',2)">
                <img src="/static/index/img/icon59.png" alt="">
            </li>
        </ul>
        <div class="profile-news">
            <p class="flex-center">
                <img src="{$user.photo}" onerror="this.src='/static/admin/img/head_default.png'" alt="">
            </p>
            <div class="rgt">
                <p>{$user.code}【{$user.nickname}】</p>
                <p>{$user.mobile}</p>
                <div>
                    {if $user.level}
                    <div class="user-level">
                        <img src="/static/index/img/icon60.png" alt="">{$user.level.title}
                    </div>
                    {/if}
                </div>
            </div>
        </div>
        <ul class="profile-nav">
            {foreach name="assets" item="vo" key="key"}
            <li onclick="load_href('{:url(\'account/record\',[\'type\'=>$key])}',2)">
                <p><span><?php echo $user->assets->$key;?></span></p>
                <div>{$vo}</div>
            </li>
            {/foreach}
        </ul>
        <div class="profile-order">
            <div class="flex-layout">我的订单
                <a href="{:url('order/my_order')}">全部订单></a>
            </div>
            <ul class="profile-order-list">
                <li>
                    <a href="{:url('order/my_order')}?type=1">
                        <p class="flex-center">
                            <img src="/static/index/img/icon61.png" alt="">
                        </p>
                        <div>待支付</div>
                        {if $order_1}<span>{$order_1}</span>{/if}
                    </a>
                </li>
                <li>
                    <a href="{:url('order/my_order')}?type=2">
                        <p class="flex-center">
                            <img src="/static/index/img/icon62.png" alt="">
                        </p>
                        <div>待发货</div>
                        {if $order_2}<span>{$order_2}</span>{/if}
                    </a>
                </li>
                <li>
                    <a href="{:url('order/my_order')}?type=3">
                        <p class="flex-center">
                            <img src="/static/index/img/icon63.png" alt="">
                        </p>
                        <div>待收货</div>
                        {if $order_3}<span>{$order_3}</span>{/if}
                    </a>
                </li>
                <li>
                    <a href="{:url('order/my_order')}?type=5">
                        <p class="flex-center">
                            <img src="/static/index/img/icon64.png" alt="">
                        </p>
                        <div>已完成</div>
                    </a>
                </li>
            </ul>
        </div>
        <div class="profile-order">
            <div class="flex-layout">常用功能</div>
            <ul class="profile-order-list profile-common">
                <li>
                    <a href="{:url('user/sign')}">
                        <p class="flex-center">
                            <img src="/static/index/img/icon93.png" alt="">
                        </p>
                        <div>签到</div>
                    </a>
                </li>
                <li>
                    <a href="{:url('account/index')}">
                        <p class="flex-center">
                            <img src="/static/index/img/icon65.png" alt="">
                        </p>
                        <div>我的钱包</div>
                    </a>
                </li>
                <li>
                    <a href="{:url('user/my_team')}">
                        <p class="flex-center">
                            <img src="/static/index/img/icon70.png" alt="">
                        </p>
                        <div>我的团队</div>
                    </a>
                </li>
                {if $system['remit_open']}
                <li>
                    <a href="{:url('remit/index')}">
                        <p class="flex-center">
                            <img src="/static/index/img/icon68.png" alt="">
                        </p>
                        <div>我要充值</div>
                    </a>
                </li>
                {/if}
                {if $system['draw_open']}
                <li>
                    <a href="{:url('draw/index')}">
                        <p class="flex-center">
                            <img src="/static/index/img/icon66.png" alt="">
                        </p>
                        <div>我要提现</div>
                    </a>
                </li>
                {/if}
                {if $system['transfer_open']}
                <li>
                    <a href="{:url('transfer/index')}">
                        <p class="flex-center">
                            <img src="/static/index/img/icon67.png" alt="">
                        </p>
                        <div>我要转账</div>
                    </a>
                </li>
                {/if}
                {if $system['exchange_open']}
                <li>
                    <a href="{:url('exchange/index')}">
                        <p class="flex-center">
                            <img src="/static/index/img/icon19.png" alt="">
                        </p>
                        <div>我要转换</div>
                    </a>
                </li>
                {/if}
                <li>
                    <a href="{:url('user/method_list')}">
                        <p class="flex-center">
                            <img src="/static/index/img/icon85.png" alt="">
                        </p>
                        <div>收款方式</div>
                    </a>
                </li>
                <li>
                    <a href="{:url('address/index')}">
                        <p class="flex-center">
                            <img src="/static/index/img/icon94.png" alt="">
                        </p>
                        <div>地址管理</div>
                    </a>
                </li>
                <li>
                    <a href="{:url('security/index')}">
                        <p class="flex-center">
                            <img src="/static/index/img/icon95.png" alt="">
                        </p>
                        <div>安全中心</div>
                    </a>
                </li>
                <li>
                    <a href="{:url('message/index')}">
                        <p class="flex-center">
                            <img src="/static/index/img/icon74.png" alt="">
                        </p>
                        <div>留言反馈</div>
                    </a>
                </li>
                {if $user.is_active == 2}
                <li>
                    <a href="{:url('user/share')}">
                        <p class="flex-center">
                            <img src="/static/index/img/icon72.png" alt="">
                        </p>
                        <div>邀请好友</div>
                    </a>
                </li>
                {/if}
            </ul>
        </div>
        <p class="save upd-save logout">退出登录</p>
    </div>
</div>
{include file="public/nav" select="4" /}
{include file="public/footer" select="0" /}
<script>
    $('.logout').click(function () {
        layer.confirm('是否退出登录？', {title: '请确认'}, function () {
            _ajax('{:url("user/logout")}');
        });
    });
</script>
</body>
</html>